<?php
session_start();
header("Content-Type: text/html;charset=utf-8");
include "../../public/common/common.php";
include "../../public/common/config.php";

$id = $_GET['shop_id'];
$sql = "select * from shop where id = {$id}";
$res = mysql_query($sql);
$row = mysql_fetch_assoc($res);

$_SESSION['shops'][$id] = $row;
$_SESSION['shops'][$id]['num'] = 1;
//echo '<pre>';
//print_r($_SESSION);
//echo '</pre>';

echo '<script>location="index.php"</script>';
?>